//
//  CXPayManager.h

//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger,UsePayType) {
    kUsePayTypeAliPay = 0,//支付宝
    kUsePayTypeWeChatPay,//微信支付
    kUsePayTypeBalancePay,//余额支付
};
typedef void(^PayCompletedCallBack)(NSDictionary *dict);
NS_ASSUME_NONNULL_BEGIN

@interface CXPayManager : NSObject

+ (instancetype)sharedInstance;

/** 通知回调 result 1成功 0失败 -1取消*/
@property (nonatomic,copy) PayCompletedCallBack payCompletedCallBack;

/**
 调起支付
 
 @param payType 支付方式
 @param target 调起支付的控制器
 @param params 支付参数
 */
-(void)orderPay:(UsePayType)payType targetController:(id)target params:(NSDictionary *)params completedCallBack:(PayCompletedCallBack)completedCallBack;

@end

NS_ASSUME_NONNULL_END
